/****************************************************************************

 Copyright (C) 2009 Jean Pierre Charalambos. All rights reserved.

 Jean Pierre Charalambos (http://dis.unal.edu.co/profesores/pierre/) is an
 Affiliate Associate Professor of the Faculty of Engineering at National
 University of Colombia (http://www.unal.edu.co/).

 This file is part of maku version 0.2.

 http://code.google.com/p/maku/
 email: jpcharalambosh@unal.edu.co

 This file may be used under the terms of the GNU General Public License
 versions 2.0 or 3.0 as published by the Free Software Foundation and
 appearing in the COPYING file included in the packaging of this file.

 This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
 WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.

*****************************************************************************/

#ifndef UNLINE_H
#define UNLINE_H

#include <QGraphicsItem>
#include <QPainter>

class UNLine : public QGraphicsItem {
    public:

        UNLine ( const QLineF &, QGraphicsItem * parent = 0 );
        UNLine ( const QPointF &, const QPointF &, QGraphicsItem * parent = 0 );
        virtual QRectF boundingRect() const;
        //la linea se deberia pintar tomando p1 y p2 y empleando unicamente el metodo drawPoint de painter
        virtual void paint ( QPainter *, const QStyleOptionGraphicsItem *, QWidget * );
        ~UNLine();

    protected:
        QPointF p1, p2;
};

#endif
